﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace MvcAlumnos.Models
{
    [Table("Inscripcion")]
    public class Inscripcion
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [Required]
        public virtual Alumno Alumno { get; set; }

        [Required]
        public virtual Materia Materia { get; set; }

        public int? Nota { get; set; }

        [DataType(DataType.Date)]
        [Required]
        [DisplayName("Fecha de Inscripción")]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd-MM-yyyy}")]
        public DateTime FechaInscripcion { get; set; }
    }
}